package com.yxuan.springboot.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 
 * @author zchao
 *    Goods实体类
 * @date 2023-05-29 14:57:28
 */
@Data
@ApiModel(description = "商品表")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class Goods implements Serializable{

	  private static final long serialVersionUID = 1L;
	
	  @ApiModelProperty(value = "商品主键id（主键）")
	  private Integer id;
	  @ApiModelProperty(value = "商品名称")
	  private String name;
	  @ApiModelProperty(value = "商品描述")
	  private String description;
	  @ApiModelProperty(value = "商品价格")
	  private BigDecimal price;
	  @ApiModelProperty(value = "商品单位")
	  private String unit;
	  @ApiModelProperty(value = "商品库存")
	  private String store;
      //创建时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date createTime;
      //更新时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date updateTime;
	  @ApiModelProperty(value = "商品状态（0存在，1删除）")
	  private String goodsState;


}
